package top.meeting.room.module.system.form;

import com.xiaoleilu.hutool.json.JSON;
import com.xiaoleilu.hutool.json.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;

/**
 * 我有故事，你有酒么？
 * JKhaled created by yunqisong@foxmail.com 2017/7/22
 * FOR : 角色表单
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RoleForm {

    private Long id;
    private String roleName;

    private List<ForceRoots> forces;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ForceRoots {

        private Long force_root;

        private List<ForceMenu> force_menus;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ForceMenu {

        private Long force_menu;

        private List<Long> force_buttons;
    }

}
